{% extends "base.html" %}
{% block title %}{{block.super}} - Paper - Create{% endblock %}
{% block content %}
<h2>Create New Paper</h2>
<div class="form_info">
To create a new Paper, fill in the fields below and press submit.
</div>
<div>
  <form action="{% url fragrances:paper_create %}" method="post">{% csrf_token %}
    <!-- {% cycle 'row2' 'row1' as rowcolors %} -->
    {{form.non_field_errors}}
    {% for field in form %}
    <div id="div_for_{{field.name}}" class="{% cycle rowcolors %}{% if field.errors %} error{% endif %}">
        {{field.label_tag}}
        {% if field.errors %}
            <div class="error_wrapper">{{ field.errors }}</div> 
        {% endif %}
        <div class="help_text" id="help_text_{{field.name}}">{{field.help_text}}</div>
        {{field}}            
    </div>
    {% endfor %}
    <div>
        <input type="submit" value="Submit" />
    </div>
  </form>
<div>
Links are here, uncomment them<br />
{% comment %}
<a href="{% url fragrances:paper_list %}">All {{'Paper'|pluralize}}</a><br />
<a href="{{paper_object.get_absolute_url}}">{{paper_object}}</a><br />
<a href="{% url fragrances:paper_create %}">Add new Paper</a><br />
{% endcomment %}
</div>
{% endblock content %}